import s from './index.module.scss'

interface CardProps {
  className?: string
  children?: any,
  innerStyle?: any,
  onClick?: () => void,
}

export default function Card(props: CardProps) {
  const {className, children, onClick, innerStyle} = props

  function __click() {
    onClick && onClick()
  }

  return (
    <div id={s.container} className={className} onClick={__click}>
      <div id={s.inner} style={innerStyle}>
        {children}
      </div>
    </div>
  )
}
